﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200081F RID: 2079
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetServerPrefsDataScRsp : IMessage<GetServerPrefsDataScRsp>, IMessage, IEquatable<GetServerPrefsDataScRsp>, IDeepCloneable<GetServerPrefsDataScRsp>, IBufferMessage
	{
		// Token: 0x17001A5F RID: 6751
		// (get) Token: 0x06005D3A RID: 23866 RVA: 0x000F9A51 File Offset: 0x000F7C51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetServerPrefsDataScRsp> Parser
		{
			get
			{
				return GetServerPrefsDataScRsp._parser;
			}
		}

		// Token: 0x17001A60 RID: 6752
		// (get) Token: 0x06005D3B RID: 23867 RVA: 0x000F9A58 File Offset: 0x000F7C58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetServerPrefsDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001A61 RID: 6753
		// (get) Token: 0x06005D3C RID: 23868 RVA: 0x000F9A6A File Offset: 0x000F7C6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetServerPrefsDataScRsp.Descriptor;
			}
		}

		// Token: 0x06005D3D RID: 23869 RVA: 0x000F9A71 File Offset: 0x000F7C71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataScRsp()
		{
		}

		// Token: 0x06005D3E RID: 23870 RVA: 0x000F9A7C File Offset: 0x000F7C7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataScRsp(GetServerPrefsDataScRsp other) : this()
		{
			this.serverPrefs_ = ((other.serverPrefs_ != null) ? other.serverPrefs_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005D3F RID: 23871 RVA: 0x000F9AC8 File Offset: 0x000F7CC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetServerPrefsDataScRsp Clone()
		{
			return new GetServerPrefsDataScRsp(this);
		}

		// Token: 0x17001A62 RID: 6754
		// (get) Token: 0x06005D40 RID: 23872 RVA: 0x000F9AD0 File Offset: 0x000F7CD0
		// (set) Token: 0x06005D41 RID: 23873 RVA: 0x000F9AD8 File Offset: 0x000F7CD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ServerPrefs ServerPrefs
		{
			get
			{
				return this.serverPrefs_;
			}
			set
			{
				this.serverPrefs_ = value;
			}
		}

		// Token: 0x17001A63 RID: 6755
		// (get) Token: 0x06005D42 RID: 23874 RVA: 0x000F9AE1 File Offset: 0x000F7CE1
		// (set) Token: 0x06005D43 RID: 23875 RVA: 0x000F9AE9 File Offset: 0x000F7CE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005D44 RID: 23876 RVA: 0x000F9AF2 File Offset: 0x000F7CF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetServerPrefsDataScRsp);
		}

		// Token: 0x06005D45 RID: 23877 RVA: 0x000F9B00 File Offset: 0x000F7D00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetServerPrefsDataScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.ServerPrefs, other.ServerPrefs) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005D46 RID: 23878 RVA: 0x000F9B50 File Offset: 0x000F7D50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.serverPrefs_ != null)
			{
				num ^= this.ServerPrefs.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005D47 RID: 23879 RVA: 0x000F9BA5 File Offset: 0x000F7DA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005D48 RID: 23880 RVA: 0x000F9BAD File Offset: 0x000F7DAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005D49 RID: 23881 RVA: 0x000F9BB8 File Offset: 0x000F7DB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.serverPrefs_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.ServerPrefs);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005D4A RID: 23882 RVA: 0x000F9C14 File Offset: 0x000F7E14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.serverPrefs_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ServerPrefs);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005D4B RID: 23883 RVA: 0x000F9C6C File Offset: 0x000F7E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetServerPrefsDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.serverPrefs_ != null)
			{
				if (this.serverPrefs_ == null)
				{
					this.ServerPrefs = new ServerPrefs();
				}
				this.ServerPrefs.MergeFrom(other.ServerPrefs);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005D4C RID: 23884 RVA: 0x000F9CD4 File Offset: 0x000F7ED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005D4D RID: 23885 RVA: 0x000F9CE0 File Offset: 0x000F7EE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.serverPrefs_ == null)
					{
						this.ServerPrefs = new ServerPrefs();
					}
					input.ReadMessage(this.ServerPrefs);
				}
			}
		}

		// Token: 0x04002404 RID: 9220
		private static readonly MessageParser<GetServerPrefsDataScRsp> _parser = new MessageParser<GetServerPrefsDataScRsp>(() => new GetServerPrefsDataScRsp());

		// Token: 0x04002405 RID: 9221
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002406 RID: 9222
		public const int ServerPrefsFieldNumber = 1;

		// Token: 0x04002407 RID: 9223
		private ServerPrefs serverPrefs_;

		// Token: 0x04002408 RID: 9224
		public const int RetcodeFieldNumber = 11;

		// Token: 0x04002409 RID: 9225
		private uint retcode_;
	}
}
